package lab03.test02;

/**
 * Created by ASUS on 2017/12/14.
 */
import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;
import java.io.*;
public class Test {
    public static void main(String[] args) throws IOException {
        String path = "D:\\hello.txt";
        BufferedReader reader = null;
        try {
            reader = new BufferedReader(new FileReader(path));
            String line = null;
            while(((line=reader.readLine()))!=null) {
                System.out.println(line);
            }
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                reader.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}
